import React, { Component, Fragment } from "react";
import { Route } from "react-router-dom";
import {
  Admin,
  ArticleLists,
  AddArticles,
  EditArticles,
  ArticleItemLists,
  AddArticleItems,
  EditArticleItems,
  UserLists,
  AddUsers,
  EditUsers,
  VideoLists,
  AddVideos,
  EditVideos,
} from "../../views/";

export default class Main extends Component {
  render() {
    return (
      <Fragment>
        <Route path="/home" exact component={Admin} />
        <Route path="/home/articlelists" component={ArticleLists} />
        <Route path="/home/addarticles" component={AddArticles} />
        <Route path="/home/editarticles" component={EditArticles} />
        <Route path="/home/articleitemlists" component={ArticleItemLists} />
        <Route path="/home/addarticleitems" component={AddArticleItems} />
        <Route path="/home/editarticleitems" component={EditArticleItems} />
        <Route path="/home/userlists" component={UserLists} />
        <Route path="/home/addusers" component={AddUsers} />
        <Route path="/home/editusers" component={EditUsers} />
        <Route path="/home/videolists" component={VideoLists} />
        <Route path="/home/addvideos" component={AddVideos} />
        <Route path="/home/editvideos" component={EditVideos} />
      </Fragment>
    );
  }
}
